From 4877d0e941f33b65b8705c8a5147e21ea50dde36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=B6ran=20Uddeborg?= Date: Sun, 1 Oct 2017 18:20:45 +0200 Subject: [PATCH] Use Latin1 when converting from Garmin device. Clean up duplicate call to simplified on the waypoint description string. --- garmin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/garmin.cc b/garmin.cc index 87cf51f76..8639d775d 100644 --- a/garmin.cc +++ b/garmin.cc @@ -394,8 +394,8 @@ waypt_read(void) for (i = 0; i < n; i++) { Waypoint* wpt_tmp = new Waypoint; - wpt_tmp->shortname = way[i]->ident; - wpt_tmp->description = QString(way[i]->cmnt).simplified(); + wpt_tmp->shortname = QString::fromLatin1(way[i]->ident); + wpt_tmp->description = QString::fromLatin1(way[i]->cmnt); wpt_tmp->shortname = wpt_tmp->shortname.simplified(); wpt_tmp->description = wpt_tmp->description.simplified(); wpt_tmp->longitude = way[i]->lon; -- 2.30.2